\hypertarget{class_q_c_p_layout}{}\section{Q\+C\+P\+Layout Class Reference}
\label{class_q_c_p_layout}\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}


The abstract base class for layouts.  


Inheritance diagram for Q\+C\+P\+Layout\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=6.000000cm]{class_q_c_p_layout}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_q_c_p_layout_a04222e6e1361fd802d48f1a25b7020d4}{Q\+C\+P\+Layout}} ()
\item 
virtual void \mbox{\hyperlink{class_q_c_p_layout_a34ab477e820537ded7bade4399c482fd}{update}} (\mbox{\hyperlink{class_q_c_p_layout_element_a0d83360e05735735aaf6d7983c56374d}{Update\+Phase}} phase)
\item 
virtual Q\+List$<$ \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$ $>$ \mbox{\hyperlink{class_q_c_p_layout_adc9ebc73fc215f9cc22796712a251ff4}{elements}} (bool recursive) const
\item 
virtual int \mbox{\hyperlink{class_q_c_p_layout_a39d3e9ef5d9b82ab1885ba1cb9597e56}{element\+Count}} () const =0
\item 
virtual \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$ \mbox{\hyperlink{class_q_c_p_layout_afa73ca7d859f8a3ee5c73c9b353d2a56}{element\+At}} (int index) const =0
\item 
virtual \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$ \mbox{\hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{take\+At}} (int index)=0
\item 
virtual bool \mbox{\hyperlink{class_q_c_p_layout_ada26cd17e56472b0b4d7fbbc96873e4c}{take}} (\mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$element)=0
\item 
virtual void \mbox{\hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{simplify}} ()
\item 
bool \mbox{\hyperlink{class_q_c_p_layout_a2403f684fee3ce47132faaeed00bb066}{remove\+At}} (int index)
\item 
bool \mbox{\hyperlink{class_q_c_p_layout_a6c58f537d8086f352576ab7c5b15d0bc}{remove}} (\mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$element)
\item 
void \mbox{\hyperlink{class_q_c_p_layout_a02883bdf2769b5b227f0232dba1ac4ee}{clear}} ()
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_layout_a165c77f6287ac92e8d03017ad913378b}\label{class_q_c_p_layout_a165c77f6287ac92e8d03017ad913378b}} 
virtual void {\bfseries update\+Layout} ()
\item 
void \mbox{\hyperlink{class_q_c_p_layout_aeac66a292f65cf7f8adf94eb92345b3e}{size\+Constraints\+Changed}} () const
\item 
\mbox{\Hypertarget{class_q_c_p_layout_af6dbbc24156a808da29cd1ec031729a3}\label{class_q_c_p_layout_af6dbbc24156a808da29cd1ec031729a3}} 
void {\bfseries adopt\+Element} (\mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$el)
\item 
\mbox{\Hypertarget{class_q_c_p_layout_a4afbb4bef0071f72f91afdac4433a18e}\label{class_q_c_p_layout_a4afbb4bef0071f72f91afdac4433a18e}} 
void {\bfseries release\+Element} (\mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$el)
\item 
\mbox{\Hypertarget{class_q_c_p_layout_a3e77be8006d39f2aafc1313d6e8fc3fd}\label{class_q_c_p_layout_a3e77be8006d39f2aafc1313d6e8fc3fd}} 
Q\+Vector$<$ int $>$ {\bfseries get\+Section\+Sizes} (Q\+Vector$<$ int $>$ max\+Sizes, Q\+Vector$<$ int $>$ min\+Sizes, Q\+Vector$<$ double $>$ stretch\+Factors, int total\+Size) const
\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_layout_a0790750c7e7f14fdbd960d172655b42b}\label{class_q_c_p_layout_a0790750c7e7f14fdbd960d172655b42b}} 
class {\bfseries Q\+C\+P\+Layout\+Element}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
The abstract base class for layouts. 

This is an abstract base class for layout elements whose main purpose is to define the position and size of other child layout elements. In most cases, layouts don\textquotesingle{}t draw anything themselves (but there are exceptions to this, e.\+g. \mbox{\hyperlink{class_q_c_p_legend}{Q\+C\+P\+Legend}}).

\mbox{\hyperlink{class_q_c_p_layout}{Q\+C\+P\+Layout}} derives from \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}}, and thus can itself be nested in other layouts.

\mbox{\hyperlink{class_q_c_p_layout}{Q\+C\+P\+Layout}} introduces a common interface for accessing and manipulating the child elements. Those functions are most notably \mbox{\hyperlink{class_q_c_p_layout_a39d3e9ef5d9b82ab1885ba1cb9597e56}{element\+Count}}, \mbox{\hyperlink{class_q_c_p_layout_afa73ca7d859f8a3ee5c73c9b353d2a56}{element\+At}}, \mbox{\hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{take\+At}}, \mbox{\hyperlink{class_q_c_p_layout_ada26cd17e56472b0b4d7fbbc96873e4c}{take}}, \mbox{\hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{simplify}}, \mbox{\hyperlink{class_q_c_p_layout_a2403f684fee3ce47132faaeed00bb066}{remove\+At}}, \mbox{\hyperlink{class_q_c_p_layout_a6c58f537d8086f352576ab7c5b15d0bc}{remove}} and \mbox{\hyperlink{class_q_c_p_layout_a02883bdf2769b5b227f0232dba1ac4ee}{clear}}. Individual subclasses may add more functions to this interface which are more specialized to the form of the layout. For example, \mbox{\hyperlink{class_q_c_p_layout_grid}{Q\+C\+P\+Layout\+Grid}} adds functions that take row and column indices to access cells of the layout grid more conveniently.

Since this is an abstract base class, you can\textquotesingle{}t instantiate it directly. Rather use one of its subclasses like \mbox{\hyperlink{class_q_c_p_layout_grid}{Q\+C\+P\+Layout\+Grid}} or \mbox{\hyperlink{class_q_c_p_layout_inset}{Q\+C\+P\+Layout\+Inset}}.

For a general introduction to the layout system, see the dedicated documentation page The Layout System. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_q_c_p_layout_a04222e6e1361fd802d48f1a25b7020d4}\label{class_q_c_p_layout_a04222e6e1361fd802d48f1a25b7020d4}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{Q\+C\+P\+Layout()}{QCPLayout()}}
{\footnotesize\ttfamily Q\+C\+P\+Layout\+::\+Q\+C\+P\+Layout (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}

Creates an instance of \mbox{\hyperlink{class_q_c_p_layout}{Q\+C\+P\+Layout}} and sets default values. Note that since \mbox{\hyperlink{class_q_c_p_layout}{Q\+C\+P\+Layout}} is an abstract base class, it can\textquotesingle{}t be instantiated directly. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_c_p_layout_a02883bdf2769b5b227f0232dba1ac4ee}\label{class_q_c_p_layout_a02883bdf2769b5b227f0232dba1ac4ee}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!clear@{clear}}
\index{clear@{clear}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{clear()}{clear()}}
{\footnotesize\ttfamily void Q\+C\+P\+Layout\+::clear (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Removes and deletes all layout elements in this layout. Finally calls \mbox{\hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{simplify}} to make sure all empty cells are collapsed.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layout_a6c58f537d8086f352576ab7c5b15d0bc}{remove}}, \mbox{\hyperlink{class_q_c_p_layout_a2403f684fee3ce47132faaeed00bb066}{remove\+At}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_layout_afa73ca7d859f8a3ee5c73c9b353d2a56}\label{class_q_c_p_layout_afa73ca7d859f8a3ee5c73c9b353d2a56}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!element\+At@{element\+At}}
\index{element\+At@{element\+At}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{element\+At()}{elementAt()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$ Q\+C\+P\+Layout\+::element\+At (\begin{DoxyParamCaption}\item[{int}]{index }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}

Returns the element in the cell with the given {\itshape index}. If {\itshape index} is invalid, returns 0.

Note that even if {\itshape index} is valid, the respective cell may be empty in some layouts (e.\+g. \mbox{\hyperlink{class_q_c_p_layout_grid}{Q\+C\+P\+Layout\+Grid}}), so this function may return 0 in those cases. You may use this function to check whether a cell is empty or not.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layout_adc9ebc73fc215f9cc22796712a251ff4}{elements}}, \mbox{\hyperlink{class_q_c_p_layout_a39d3e9ef5d9b82ab1885ba1cb9597e56}{element\+Count}}, \mbox{\hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{take\+At}} 
\end{DoxySeeAlso}


Implemented in \mbox{\hyperlink{class_q_c_p_layout_inset_a832e049f0bb32e7db0490a9c904098df}{Q\+C\+P\+Layout\+Inset}}, and \mbox{\hyperlink{class_q_c_p_layout_grid_a97672ecc379cb3a09639926ba9980297}{Q\+C\+P\+Layout\+Grid}}.

\mbox{\Hypertarget{class_q_c_p_layout_a39d3e9ef5d9b82ab1885ba1cb9597e56}\label{class_q_c_p_layout_a39d3e9ef5d9b82ab1885ba1cb9597e56}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!element\+Count@{element\+Count}}
\index{element\+Count@{element\+Count}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{element\+Count()}{elementCount()}}
{\footnotesize\ttfamily int Q\+C\+P\+Layout\+::element\+Count (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}

Returns the number of elements/cells in the layout.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layout_adc9ebc73fc215f9cc22796712a251ff4}{elements}}, \mbox{\hyperlink{class_q_c_p_layout_afa73ca7d859f8a3ee5c73c9b353d2a56}{element\+At}} 
\end{DoxySeeAlso}


Implemented in \mbox{\hyperlink{class_q_c_p_layout_inset_a0398918a888fa7974a6776dc47fc5d2e}{Q\+C\+P\+Layout\+Inset}}, and \mbox{\hyperlink{class_q_c_p_layout_grid_a77f194843d037e0da6d5f3170acdf3a2}{Q\+C\+P\+Layout\+Grid}}.

\mbox{\Hypertarget{class_q_c_p_layout_adc9ebc73fc215f9cc22796712a251ff4}\label{class_q_c_p_layout_adc9ebc73fc215f9cc22796712a251ff4}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!elements@{elements}}
\index{elements@{elements}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{elements()}{elements()}}
{\footnotesize\ttfamily Q\+List$<$ \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$ $>$ Q\+C\+P\+Layout\+::elements (\begin{DoxyParamCaption}\item[{bool}]{recursive }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

Returns a list of all child elements in this layout element. If {\itshape recursive} is true, all sub-\/child elements are included in the list, too.

\begin{DoxyWarning}{Warning}
There may be entries with value 0 in the returned list. (For example, \mbox{\hyperlink{class_q_c_p_layout_grid}{Q\+C\+P\+Layout\+Grid}} may have empty cells which yield 0 at the respective index.) 
\end{DoxyWarning}


Reimplemented from \mbox{\hyperlink{class_q_c_p_layout_element_a76dec8cb31e498994a944d7647a43309}{Q\+C\+P\+Layout\+Element}}.



Reimplemented in \mbox{\hyperlink{class_q_c_p_layout_grid_a20a745d013de4c89cf5de8004a5a36f7}{Q\+C\+P\+Layout\+Grid}}.

\mbox{\Hypertarget{class_q_c_p_layout_a6c58f537d8086f352576ab7c5b15d0bc}\label{class_q_c_p_layout_a6c58f537d8086f352576ab7c5b15d0bc}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!remove@{remove}}
\index{remove@{remove}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{remove()}{remove()}}
{\footnotesize\ttfamily bool Q\+C\+P\+Layout\+::remove (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$}]{element }\end{DoxyParamCaption})}

Removes and deletes the provided {\itshape element}. Returns true on success. If {\itshape element} is not in the layout, returns false.

This function internally uses \mbox{\hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{take\+At}} to remove the element from the layout and then deletes the element. Note that some layouts don\textquotesingle{}t remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use \mbox{\hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{simplify}}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layout_a2403f684fee3ce47132faaeed00bb066}{remove\+At}}, \mbox{\hyperlink{class_q_c_p_layout_ada26cd17e56472b0b4d7fbbc96873e4c}{take}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_layout_a2403f684fee3ce47132faaeed00bb066}\label{class_q_c_p_layout_a2403f684fee3ce47132faaeed00bb066}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!remove\+At@{remove\+At}}
\index{remove\+At@{remove\+At}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{remove\+At()}{removeAt()}}
{\footnotesize\ttfamily bool Q\+C\+P\+Layout\+::remove\+At (\begin{DoxyParamCaption}\item[{int}]{index }\end{DoxyParamCaption})}

Removes and deletes the element at the provided {\itshape index}. Returns true on success. If {\itshape index} is invalid or points to an empty cell, returns false.

This function internally uses \mbox{\hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{take\+At}} to remove the element from the layout and then deletes the returned element. Note that some layouts don\textquotesingle{}t remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use \mbox{\hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{simplify}}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layout_a6c58f537d8086f352576ab7c5b15d0bc}{remove}}, \mbox{\hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{take\+At}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}\label{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!simplify@{simplify}}
\index{simplify@{simplify}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{simplify()}{simplify()}}
{\footnotesize\ttfamily void Q\+C\+P\+Layout\+::simplify (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Simplifies the layout by collapsing empty cells. The exact behavior depends on subclasses, the default implementation does nothing.

Not all layouts need simplification. For example, \mbox{\hyperlink{class_q_c_p_layout_inset}{Q\+C\+P\+Layout\+Inset}} doesn\textquotesingle{}t use explicit simplification while \mbox{\hyperlink{class_q_c_p_layout_grid}{Q\+C\+P\+Layout\+Grid}} does. 

Reimplemented in \mbox{\hyperlink{class_q_c_p_layout_inset_abb9eb23bf2d7c587a8abe02d065eae0a}{Q\+C\+P\+Layout\+Inset}}, and \mbox{\hyperlink{class_q_c_p_layout_grid_a08bba60e4acd20165526a8fd7f986b58}{Q\+C\+P\+Layout\+Grid}}.

\mbox{\Hypertarget{class_q_c_p_layout_aeac66a292f65cf7f8adf94eb92345b3e}\label{class_q_c_p_layout_aeac66a292f65cf7f8adf94eb92345b3e}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!size\+Constraints\+Changed@{size\+Constraints\+Changed}}
\index{size\+Constraints\+Changed@{size\+Constraints\+Changed}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{size\+Constraints\+Changed()}{sizeConstraintsChanged()}}
{\footnotesize\ttfamily void Q\+C\+P\+Layout\+::size\+Constraints\+Changed (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [protected]}}

Subclasses call this method to report changed (minimum/maximum) size constraints.

If the parent of this layout is again a \mbox{\hyperlink{class_q_c_p_layout}{Q\+C\+P\+Layout}}, forwards the call to the parent\textquotesingle{}s \mbox{\hyperlink{class_q_c_p_layout_aeac66a292f65cf7f8adf94eb92345b3e}{size\+Constraints\+Changed}}. If the parent is a Q\+Widget (i.\+e. is the \mbox{\hyperlink{class_q_custom_plot_af1a1f1f571237deb7c2bd34a5e9f018f}{Q\+Custom\+Plot\+::plot\+Layout}} of \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}}), calls Q\+Widget\+::update\+Geometry, so if the \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} widget is inside a Qt Q\+Layout, it may update itself and resize cells accordingly. \mbox{\Hypertarget{class_q_c_p_layout_ada26cd17e56472b0b4d7fbbc96873e4c}\label{class_q_c_p_layout_ada26cd17e56472b0b4d7fbbc96873e4c}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!take@{take}}
\index{take@{take}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{take()}{take()}}
{\footnotesize\ttfamily bool Q\+C\+P\+Layout\+::take (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$}]{element }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Removes the specified {\itshape element} from the layout and returns true on success.

If the {\itshape element} isn\textquotesingle{}t in this layout, returns false.

Note that some layouts don\textquotesingle{}t remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use \mbox{\hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{simplify}}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{take\+At}} 
\end{DoxySeeAlso}


Implemented in \mbox{\hyperlink{class_q_c_p_layout_inset_a9ac707ccff650633b97f52dd5cddcf49}{Q\+C\+P\+Layout\+Inset}}, and \mbox{\hyperlink{class_q_c_p_layout_grid_a666a9fe9e92054436f9b66eba25cca0c}{Q\+C\+P\+Layout\+Grid}}.

\mbox{\Hypertarget{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}\label{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!take\+At@{take\+At}}
\index{take\+At@{take\+At}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{take\+At()}{takeAt()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element}} $\ast$ Q\+C\+P\+Layout\+::take\+At (\begin{DoxyParamCaption}\item[{int}]{index }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Removes the element with the given {\itshape index} from the layout and returns it.

If the {\itshape index} is invalid or the cell with that index is empty, returns 0.

Note that some layouts don\textquotesingle{}t remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use \mbox{\hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{simplify}}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_layout_afa73ca7d859f8a3ee5c73c9b353d2a56}{element\+At}}, \mbox{\hyperlink{class_q_c_p_layout_ada26cd17e56472b0b4d7fbbc96873e4c}{take}} 
\end{DoxySeeAlso}


Implemented in \mbox{\hyperlink{class_q_c_p_layout_inset_ad6756a3b507e20496aaf7f5ca16c47d1}{Q\+C\+P\+Layout\+Inset}}, and \mbox{\hyperlink{class_q_c_p_layout_grid_acc1277394ff8a6432e111ff9463e6375}{Q\+C\+P\+Layout\+Grid}}.

\mbox{\Hypertarget{class_q_c_p_layout_a34ab477e820537ded7bade4399c482fd}\label{class_q_c_p_layout_a34ab477e820537ded7bade4399c482fd}} 
\index{Q\+C\+P\+Layout@{Q\+C\+P\+Layout}!update@{update}}
\index{update@{update}!Q\+C\+P\+Layout@{Q\+C\+P\+Layout}}
\subsubsection{\texorpdfstring{update()}{update()}}
{\footnotesize\ttfamily void Q\+C\+P\+Layout\+::update (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_c_p_layout_element_a0d83360e05735735aaf6d7983c56374d}{Update\+Phase}}}]{phase }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

First calls the \mbox{\hyperlink{class_q_c_p_layout_element_a929c2ec62e0e0e1d8418eaa802e2af9b}{Q\+C\+P\+Layout\+Element\+::update}} base class implementation to update the margins on this layout.

Then calls update\+Layout which subclasses reimplement to reposition and resize their cells.

Finally, \mbox{\hyperlink{class_q_c_p_layout_a34ab477e820537ded7bade4399c482fd}{update}} is called on all child elements. 

Reimplemented from \mbox{\hyperlink{class_q_c_p_layout_element_a929c2ec62e0e0e1d8418eaa802e2af9b}{Q\+C\+P\+Layout\+Element}}.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8h}{qcustomplot.\+h}}\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}}\end{DoxyCompactItemize}
